//
//  ProgressTextField.m
//  EducationOID
//
//  Created by slz on 2017/8/17.
//  Copyright © 2017年 bnsr. All rights reserved.
//

#import "ProgressTextField.h"
#import "NSString+YYAdd.h"

@implementation ProgressTextField

-(instancetype)initWithLeftLabelTitle:(NSString *)leftString{
    self = [super init];
    if (self){
        self.leftViewMode = UITextFieldViewModeAlways;
        self.borderStyle = UITextBorderStyleRoundedRect;
        self.font = [UIFont systemFontOfSize:14];
        self.textColor = kDark_TextColor_Default;
        UILabel * leftLabel1 = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 60, 40)];
        leftLabel1.fontSize = 14;
        
        CGFloat labelWidth = [leftString widthForFont:leftLabel1.font];
        leftLabel1.width = labelWidth + 10;
        
        leftLabel1.text = leftString;
        leftLabel1.textAlignment = NSTextAlignmentCenter;
        leftLabel1.textColor = kDark_TextColor_Default;
        self.leftView = leftLabel1;
    }
    return self;
}

@end
